<%--
  Created by IntelliJ IDEA.
  User: Adam
  Date: 2022/3/10
  Time: 12:53
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %>
<!--开启EL表达式-->
<html>
<head>
    <title>Title</title>
</head>
<body>

<p>当返回ModelAndView实现forward</p>
<form action="doForward.do" method="post">
    姓名：<input type="text" name="name"> <br/>
    年龄：<input type="text" name="age"> <br>
    <input type="submit" value="提交请求">
</form>

<br/>
<br/>
<br/>

<p>当返回ModelAndView实现redirect</p>
<form action="doRedirect.do" method="post">
    姓名：<input type="text" name="name"> <br/>
    年龄：<input type="text" name="age"> <br>
    <input type="submit" value="提交请求">
</form>

</body>
</html>
